﻿using NavigationDemo.ViewModels;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

namespace NavigationDemo.Views
{
    public sealed partial class Parent : Page
    {
        public Parent()
        {
            this.InitializeComponent();
            Loaded += Parent_Loaded;
        }

        void Parent_Loaded(object sender, RoutedEventArgs e)
        {
            (this.DataContext as SharedViewModel).Page = this;
        }
    }
}
